package com.ls.pattern.structure.proxy.cglib_proxy;

public class Main {
    public static void main(String[] args) {
        ProxyFactory proxyFactory = new ProxyFactory(new TeacherDao());
        TeacherDao proxy = (TeacherDao)proxyFactory.getProxyInstance();
        proxy.teach();
        proxy.teach2();


    }
}
